package com.tracy.lifeproject.app;

import android.app.Application;
import android.graphics.Bitmap;

import com.squareup.picasso.LruCache;
import com.squareup.picasso.Picasso;

/**
 * ***********************************************************
 * author: tracy
 * time: 2016/7/20 11:31
 * name:
 * overview:
 * usage:
 * *************************************************************
 */
public class IApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        initPicasso();
    }

    /**
     * 初始化Picasso 配置信息
     * */
    private void initPicasso() {
        Picasso picasso = new Picasso.Builder(this)
                .defaultBitmapConfig(Bitmap.Config.ARGB_8888)
                .memoryCache(new LruCache(10 << 20))
                .build();
        Picasso.setSingletonInstance(picasso);



    }
}
